home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / security / doc / clippings / 920326-01 < prev    next >
Encoding:
Text File  |  1992-05-19  |  1.8 KB  |  40 lines

  1. Newsgroups: alt.security
  2. From: bsy+@CS.CMU.EDU (Bennet Yee)
  3. Subject: Re: X Lack of Security
  4. Message-ID: <1992Mar26.005744.108041@cs.cmu.edu>
  5. Date: Thu, 26 Mar 92 00:57:44 GMT
  6. Organization: Cranberry Melon, School of Cucumber Science
  7. References: <CONS.92Mar24173517@mercury.cern.ch> <1992Mar24.181039.28991@news.iastate.edu> <1992Mar25.193359.224841@cs.cmu.edu> <1992Mar25.225034.16298@fwi.uva.nl>
  8.  
  9. Apparently I wasn't being sufficiently clear.
  10.  
  11. In article <1992Mar25.225034.16298@fwi.uva.nl>, casper@fwi.uva.nl (Casper H.S. Dik) writes:
  12. >bsy+@CS.CMU.EDU (Bennet Yee) writes:
  13. >
  14. >>For most users, simply using the Unix domain socket that's in
  15. >>/tmp/.X11-unix (by doing a ``setenv DISPLAY unix:0.0'') will permit
  16. >>access.  File access control bits for Unix domain sockets are not
  17. >>checked properly.  It is easy enough to work around, albeit inelegant:
  18. >>simply move the socket to a directory in a path that you have control
  19. >>over (creating your own directory under a sticky /tmp/.X11-unix is
  20. >>sufficient), make the old name a symlink to the new socket name, and
  21. >>then fix the directory access permissions.
  22. >
  23. >The access to the socket is no important. All users have access
  24. >to /tmp/.X11-unix/X0, but also to 6000/tcp. MIT-MGIC-COOKIE will be
  25. >enforced on all connection, regardless of their origin.
  26.  
  27. The point here is that xhost access control applies only to the TCP
  28. based connections, not the Unix domain ones.  You can un-xhost all
  29. hosts (including the localhost), but you have to do something special
  30. to really turn off access via the Unix domain socket when you're not
  31. using the magic cookie protocol.  Casper's comment, while true, is
  32. orthogonal to this.
  33.  
  34. -bsy
  35.  
  36. -- 
  37. Bennet S. Yee        Phone: +1 412 268-7571        Email: bsy+@cs.cmu.edu
  38. School of Computer Science, Carnegie Mellon, Pittsburgh, PA 15213-3890
  39.  
  40.